//
//  DM_OrmSQLOpenHelper.swift
//  构建者模式_ORM_SWIFT
//
//  Created by 王苏进 on 17/5/17.
//  Copyright © 2017年 macOS. All rights reserved.
//

import UIKit

class DM_OrmSQLOpenHelper: DM_SQLiteOpenHelper {
    
    
    
     init() {
        
        super.init(dbName: "MyOrm.db", dbVersion: "1.0")
        
        
        
    }
    override func onCreate(db: DM_OrmSQLiteDB) {
        
        //创建表格
         let result = db.createTable(cls: DM_User.classForCoder())
        
        print("创建表结果：\(result)")
        
        
    }
    
    override func onUpdate(db: DM_OrmSQLiteDB, dbVersion: String) {
        
    }
    

}
